package com.probox.common.core.constant;

/**
 * @author Kite
 * @date 2021/5/18
 */
public class CachePrefix {
    //全局前缀
    public static String PRE_GLOABLE = "PROBOX_";

    /**
     * 商品库存
     * key+= product_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_STOCK_NUMBER = PRE_GLOABLE + "PRODUCT_STOCK_NUMBER_";

    public static final String TEMPLATE_SIGN = PRE_GLOABLE + "TEMPLATE_SIGN_";
    public static final String TEMPLATE_MALL_PAGE = PRE_GLOABLE + "TEMPLATE_MALL_PAGE";

    /**
     * 后台用户菜单缓存
     * key+= userId
     * 添加,修改,改变状态时删除缓存
     */
    public static final String WEB_ROUTERS = PRE_GLOABLE + "WEB_ROUTERS_";

    /**
     * 后台用户信息
     * key+= userId
     * 添加,修改,改变状态时删除缓存
     */
    public static final String WEB_USER_INFO = PRE_GLOABLE + "WEB_USER_INFO_";

    /**
     * 后台用户角色集合
     * key+= userId
     * 添加,修改,改变状态时删除缓存
     */
    public static final String WEB_USER_ROLE = PRE_GLOABLE + "WEB_USER_ROLE_";

    /**
     * 后台用户权限
     * key+= userId
     * 添加,修改,改变状态时删除缓存
     */
    public static final String WEB_USER_PERMISSION = PRE_GLOABLE + "WEB_USER_PERMISSION_";


    /**
     * 前端商品详情缓存
     * key += product_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String API_PRODUCT_DETAIL = PRE_GLOABLE + "API_PRODUCT_DETAIL_";

    /**
     * view分类级联
     * key+= platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_CATEGORY_CASCADER = PRE_GLOABLE + "PRODUCT_CATEGORY_CASCADER_";

    /**
     * 顶级分类
     * key+= platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_CATEGORY_TOP = PRE_GLOABLE + "PRODUCT_CATEGORY_TOP_";

    /**
     * 商品的二级分类加轮播图
     * key+= 一级分类uid
     * 添加,修改,改变状态分类和添加,修改,改变状态商品时删除
     */
    public static final String PRODUCT_CATEGORY_TWO_BANNER = PRE_GLOABLE + "PRODUCT_CATEGORY_TWO_BANNER_";

    /**
     * view品牌下拉框
     * key+= platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_BRAND_SELECT = PRE_GLOABLE + "PRODUCT_BRAND_SELECT_";

    /**
     * view商品单位下拉框
     * key+= platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_UNIT_SELECT = PRE_GLOABLE + "PRODUCT_UNIT_SELECT_";

    /**
     * 店铺详情
     * key+= platform_uid
     * 修改,改变状态时删除缓存
     */
    public static final String PLATFOR_STORE_DETAIL = PRE_GLOABLE + "PLATFOR_STORE_DETAIL_";

    /**
     * view商品规格下拉框
     * key+= platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_SPECS_SELECT = PRE_GLOABLE + "PRODUCT_SPECS_SELECT_";
    public static final String PRODUCT_PROPERTY_SELECT = PRE_GLOABLE + "PRODUCT_PROPERTY_SELECT_";


    /**
     * view商品标签下拉框
     * key+= platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PRODUCT_TAGS_SELECT = PRE_GLOABLE + "PRODUCT_TAGS_SELECT_";

    /**
     * 不带分类查询的猜你喜欢
     * key+=platform_uid
     * 修改和改变状态时删除缓存
     */
    public static final String PRODUCT_LIKE = PRE_GLOABLE + "PRODUCT_LIKE_";

    /**
     * 带分类的猜你喜欢
     * key+=platform_uid
     * 修改和改变状态时删除缓存
     */
    public static final String PRODUCT_LIKE_CATEGORY = PRE_GLOABLE + "PRODUCT_LIKE_CATEGORY_";

    /**
     * 店铺装修 我的页面
     * key+= platform_uid
     * 发布模板的时候删除
     */
    public static final String TEMPLATE_MY_PAGE = PRE_GLOABLE + "TEMPLATE_MY_PAGE_";

    /**
     * 店铺装修 分类页面
     * key+= platform_uid
     * 发布模板的时候删除
     */
    public static final String TEMPLATE_CLASS_PAGE = PRE_GLOABLE + "TEMPLATE_CLASS_PAGE_";

    /**
     * 店铺装修 商品
     * key+=product_uid
     * 修改商品时删除
     */
    public static final String TEMPLATE_PRODUCT = PRE_GLOABLE + "TEMPLATE_PRODUCT_";

    /**
     * 店铺装修 商品分组
     * key+=groupUid
     * 修改商品和修改分组,修改状态时删除
     */
    public static final String TEMPLATE_PRODUCT_GROUP = PRE_GLOABLE + "TEMPLATE_PRODUCT_GROUP_";

    //商品分组列表
    public static final String PRODUCT_GROUP_LIST = PRE_GLOABLE + "PRODUCT_GROUP_LIST_";

    /**
     * 店铺装修 首页页面
     * key+= platform_uid
     * 发布模板的时候删除
     */
    public static final String TEMPLATE_HOME_PAGE = PRE_GLOABLE + "TEMPLATE_HOME_PAGE_";

    public static final String OPEN_SCREEN = PRE_GLOABLE + "OPEN_SCREEN_";

    /**
     * view平台信息分类下拉框
     * key+= number+platform_uid
     * 添加,修改,改变状态时删除缓存
     */
    public static final String PLATFORM_CMS_CLASS = PRE_GLOABLE + "PLATFORM_CMS_CLASS_";

    /**
     * 店铺装修所需要的缓存
     * key+=platform_uid
     * 添加,修改,改变状态删除缓存
     */
    public static final String PLATFORM_CNS = PRE_GLOABLE + "PLATFORM_CNS_";

    /**
     * 商品详情页用户行为日志
     * key += product_uid
     * 不需要删除
     */
    public static final String PRODUCT_OPT_BEHAVIOR = PRE_GLOABLE + "PRODUCT_OPT_BEHAVIOR_";

    /**
     * 买家秀详情
     * key += buyersshowUid
     * 修改和改变状态时删除
     */
    public static final String PRODUCT_BUYERSSHOW = PRE_GLOABLE + "PRODUCT_BUYERSSHOW_";

    /**
     * 首页用户行为日志
     * key += platform_uid
     * 不需要删除
     */
    public static final String PLATFORM_OPT_BEHAVIOR = PRE_GLOABLE + "PLATFORM_OPT_BEHAVIOR_";

    //图形验证码
    public static final String SMS_CODE = PRE_GLOABLE + "SMS_CODE_";

    //短信配置信息
    //key += platform
    public static final String PLATFORM_SMS_CONFIG = PRE_GLOABLE + "SMS_CONFIG_";

    //地址信息
    //key = key
    //修改地址信息时候删除
    public static final String PLATFORM_AREA = PRE_GLOABLE + "AREA_LIST_NEW_";

    //供应商列表
    //key += platformId +"_"+IsAuth(认证状态）
    //新增、删除供应商时候删除
    public static final String SUPPLIER_LIST = PRE_GLOABLE + "SUPPLIER_LIST_";

    //供应商列表
    public static final String SUPPLIER_DATA = PRE_GLOABLE + "SUPPLIER_DATA";

    //微信第三方授权方appid key+= 平台id_授权类型
    public static final String PLATFORM_AUTHORIZER_APPID = PRE_GLOABLE + "PLATFORM_AUTHORIZER_APPID_";

    //微信第三方绑定公众号信息 key+= appid
    public static final String WECHAT_BIND_AUTHORIZERINDO = PRE_GLOABLE + "WECHAT_BIND_AUTHORIZERINDO_";

    //微信第三方 titck
    public static final String WECHAT_TICKET_INFO = PRE_GLOABLE + "WECHAT_TICKET_INFO";

    //微信第三方 access_token
    public static final String WECHAT_ACCESS_TOKEN_INFO = PRE_GLOABLE + "WECHAT_ACCESS_TOKEN_INFO";

    //微信B端的access_token
    public static final String ADMIN_WECHAT_ACCESS_TOKEN_INFO = PRE_GLOABLE + "ADMIN_WECHAT_ACCESS_TOKEN_INFO";

    public static final String PUBLIC_WECHAT_ACCESS_TOKEN_INFO = PRE_GLOABLE + "PUBLIC_WECHAT_ACCESS_TOKEN_INFO";

    //微信公众号登录 key+= appid
    public static final String WECHAT_ALLWORK_LOGIN = PRE_GLOABLE + "WECHAT_ALLWORK_LOGIN_";

    //微信授权方信息 key+= appid
    public static final String WECHAT_AUTHORIZERINDO_INFO = PRE_GLOABLE + "WECHAT_AUTHORIZERINDO_INFO_";


    //微信第三方是否自动发布
    public static final String WECHAT_IS_ISSUE = PRE_GLOABLE + "WECHAT_IS_ISSUE_";

    /**
     * 用户领取优惠券控制
     * key += couponUid_customerUid
     */
    public static final String COUPON_CUSTOMER = PRE_GLOABLE + "COUPON_CUSTOMER_";

    /**
     * 抽奖活动ID
     * key += lotteryId
     * 修改抽奖活动信息时删除该缓存
     */
    public static final String LOTTERY_DETAIL = PRE_GLOABLE + "LOTTERY_DETAIL_";

    /**
     * 客服
     */
    public static final String CUSTOMER_CHAT = PRE_GLOABLE + "CUSTOMER_CHAT_";

    /**
     * 店铺设置的缓存
     * key+= platform_uid
     * 修改店铺设置时删除该缓存
     */
    public static final String PLATFORM_GENERAL_SETTINGS = PRE_GLOABLE + "PLATFORM_GENERAL_SETTINGS_2024_";

    /**
     * 获取测试商品数据的分类
     * 不用删除该缓存,1天一刷
     */
    public static final String PDD_GATEGORY = PRE_GLOABLE + "PDD_GATEGORY";

    /**
     * 活动详情缓存
     * 后端修改活动时，删除此缓存
     * key += activityUid
     */
    public static final String ACTIVITY_OBJ = PRE_GLOABLE + "ACTIVITY_OBJ_";

    /**
     * 参与活动详情
     * 帮砍时，删除此缓存
     * key += joinUid
     */
    public static final String ACTIVITY_JOIN = PRE_GLOABLE + "ACTIVITY_JOIN_";

    /**
     * 活动商品对象
     * 修改活动时删除
     * key += activityProUid
     */
    public static final String ACTIVITY_PRO_OBJ = PRE_GLOABLE + "ACTIVITY_PRO_OBJ_";

    /**
     * 活动商品库存
     * key += activityProUid
     */
    public static final String ACTIVITY_PRO_STOCK = PRE_GLOABLE + "ACTIVITY_PRO_STOCK_";

    /**
     * 活动套餐库存(套餐活动)
     * key += activityUid
     */
    public static final String ACTIVITY_PACKAGE_STOCK = PRE_GLOABLE + "ACTIVITY_PACKAGE_STOCK_";

    /**
     * 活动限购，套餐活动类限购activityProUid取0
     * key += activity _ activityProUid _ customerUid
     */
    public static final String ACTIVITY_CUSTOMER_LIMIT = PRE_GLOABLE + "ACTIVITY_CUSTOMER_LIMIT_";


    //图形验证码
    public static final String IMAGE_CODE = PRE_GLOABLE + "IMAGE_CODE_";

    //客户运营指定客户发送优惠券与发送通知控制 key += operationUid
    public static final String CUSTOMER_COUPONANDINFORM = PRE_GLOABLE + "CUSTOMER_COUPONANDINFORM_";

    /**
     * 赠品
     * 修改删除时删除缓存
     * key += giftUid
     */
    public static final String ACTIVITY_GIFT = PRE_GLOABLE + "ACTIVITY_GIFT_";

    /**
     * 优惠券
     * 修改删除时删除缓存
     * key += couponUid
     */
    public static final String ACTIVITY_COUPON = PRE_GLOABLE + "ACTIVITY_COUPON_";

    /**
     * 客户人群信息
     * key += platformid
     */
    public static final String CUSTOMER_GROUP = PRE_GLOABLE + "CUSTOMER_GROUP_";

    /**
     * 获取用户信息
     * key += customerUid
     */
    public static final String CUSTOMER_INFO_DETAIL = PRE_GLOABLE + "CUSTOMER_INFO_DETAIL_";

    /**
     * 获取用户的简单信息
     */
    public static final String CUSTOMER_SIMPLE_INFO_DETAIL = PRE_GLOABLE + "CUSTOMER_SIMPLE_INFO_DETAIL_";

    /**
     * 获取用户当前等级信息
     * key += fundUId
     */
    public static final String CUSTOMER_BIND_LEVEL = PRE_GLOABLE + "CUSTOMER_BIND_LEVEL_";

    /**
     * 客户详细信息(等级,openId)
     * key += platformid
     */
    public static final String CUSTOMER_LEVELANDCUSTOMERINFO = PRE_GLOABLE + "CUSTOMER_LEVELANDCUSTOMERINFO_";


    /**
     * 微信消息推送
     * key += platformid
     */
    public static final String WECHAT_INFORMATION_AUTHORIZATION = PRE_GLOABLE + "WECHAT_INFORMATION_AUTHORIZATION_";

    /**
     * 用户和商品小程序码
     * key += productUid + customerUid
     */
    public static final String WECHAT_CODE_PRODUCT = PRE_GLOABLE + "WECHAT_CODE_PRODUCT_";

    /**
     * 所有门店信息
     * key += platformUid
     */
    public static final String PLATFORM_STORE_LIST = PRE_GLOABLE + "PLATFORM_STORE_LIST_";

    //小程序首页的服务项目
    public static final String APPLET_HOME_PAGE_SERVICE_ITEM_LIST = PRE_GLOABLE + "HOME_PAGE_SERVICE_ITEM_LIST_";

    public static final String APPLET_HOME_PAGE_SCORE_ITEM_LIST = PRE_GLOABLE + "HOME_PAGE_SCORE_ITEM_LIST_";

    //小程序首页的服务套餐
    public static final String APPLET_HOME_PAGE_SERVICE_CARD_LIST = PRE_GLOABLE + "HOME_PAGE_SERVICE_CARD_LIST_";

    //小程序服务套餐详情
    public static final String APPLET_SERVICE_CARD_INFO = PRE_GLOABLE + "APPLET_SERVICE_CARD_INFO_";

    //小程序叠叠乐套餐
    public static final String APPLET_DDL_CARD_INFO = PRE_GLOABLE + "APPLET_SERVICE_CARD_INFO_DDL_";

    //小程序服务项目详情
    public static final String APPLET_SERVICE_ITEM_INFO = PRE_GLOABLE + "APPLET_SERVICE_ITEM_INFO_";

    //服务项目预约
    public static final String APPLET_SERVICE_ITEM_SUBSCRIBE_INFO = PRE_GLOABLE + "APPLET_SERVICE_ITEM_SUBSCRIBE_INFO_";

    //技师预约
    public static final String APPLET_SERVICE_ITEM_SUBSCRIBE_TECH_INFO = PRE_GLOABLE + "APPLET_SERVICE_ITEM_SUBSCRIBE_TECH_INFO_";

    //转赠缓存
    public static final String APPLET_SERVICE_ITEM_GIFT_INFO = PRE_GLOABLE + "APPLET_SERVICE_ITEM_GIFT_INFO_";

    //确认预约信息
    public static final String APPLET_AUDIT_SUBSCRIBE_INFO = PRE_GLOABLE + "APPLET_AUDIT_SUBSCRIBE_INFO_";

    //领取转赠记录
    public static final String APPLET_SERVICE_ACCESS_GIFT_DETAIL = PRE_GLOABLE + "APPLET_SERVICE_ACCESS_GIFT_DETAIL_";

}
